package com.net.xpay.common.manager.impl.stat;

import com.net.xpay.common.manager.stat.PartnerRealTimeStatManager;
import com.net.common.dao.BasicMapper;
import com.net.common.manager.AbstractManager;
import com.net.xpay.common.dao.stat.PartnerRealTimeStatMapper;
import com.net.xpay.common.domain.stat.PartnerRealTimeStat;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;


@Component
public class PartnerRealTimeStatManagerImpl extends AbstractManager<PartnerRealTimeStat> implements PartnerRealTimeStatManager {

    @Autowired
    private PartnerRealTimeStatMapper mapper;


    @Override
    protected BasicMapper<Long, PartnerRealTimeStat> getMapper() {
        return mapper;
    }

    @Override
    public PartnerRealTimeStat getByPartnerId(Long partnerId) {
        PartnerRealTimeStat condition = new PartnerRealTimeStat();
        condition.setPartnerId(partnerId);
        return getByCondition(condition);
    }




}
